<html>
<head><meta charset="utf-8"><title>Doc tests for std · general · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/index.html">general</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Doc.20tests.20for.20std.html">Doc tests for std</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="163520335"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Doc%20tests%20for%20std/near/163520335" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jethro <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Doc.20tests.20for.20std.html#163520335">(Apr 17 2019 at 00:42)</a>:</h4>
<p>How do I (cross-)compile &amp; run the doc tests for std?</p>



<a name="163520344"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Doc%20tests%20for%20std/near/163520344" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jethro <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Doc.20tests.20for.20std.html#163520344">(Apr 17 2019 at 00:42)</a>:</h4>
<p>I tried <code>./x.py test --stage 1 --target x86_64-fortanix-unknown-sgx src/libstd --doc</code></p>



<a name="163520360"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Doc%20tests%20for%20std/near/163520360" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jethro <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Doc.20tests.20for.20std.html#163520360">(Apr 17 2019 at 00:43)</a>:</h4>
<p>that compiles rustdoc for my host and std for my target, but it never actually runs rustdoc</p>



<a name="163520361"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Doc%20tests%20for%20std/near/163520361" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jethro <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Doc.20tests.20for.20std.html#163520361">(Apr 17 2019 at 00:43)</a>:</h4>
<p>running the unit tests works fine</p>



<a name="163520437"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Doc%20tests%20for%20std/near/163520437" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> QuietMisdreavus <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Doc.20tests.20for.20std.html#163520437">(Apr 17 2019 at 00:44)</a>:</h4>
<p>cross-compiling doctests is currently not supported</p>



<a name="163520448"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Doc%20tests%20for%20std/near/163520448" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> QuietMisdreavus <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Doc.20tests.20for.20std.html#163520448">(Apr 17 2019 at 00:44)</a>:</h4>
<p>in general</p>



<a name="163520463"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Doc%20tests%20for%20std/near/163520463" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jethro <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Doc.20tests.20for.20std.html#163520463">(Apr 17 2019 at 00:45)</a>:</h4>
<p>oh</p>



<a name="163520465"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Doc%20tests%20for%20std/near/163520465" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> QuietMisdreavus <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Doc.20tests.20for.20std.html#163520465">(Apr 17 2019 at 00:45)</a>:</h4>
<p>so it's probably skipping the doctests since you provided the <code>--target</code></p>



<a name="163520593"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Doc%20tests%20for%20std/near/163520593" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jethro <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Doc.20tests.20for.20std.html#163520593">(Apr 17 2019 at 00:47)</a>:</h4>
<p><a href="https://github.com/rust-lang/cargo/issues/6460" target="_blank" title="https://github.com/rust-lang/cargo/issues/6460">https://github.com/rust-lang/cargo/issues/6460</a> / <a href="https://github.com/rust-lang/rust/issues/44404" target="_blank" title="https://github.com/rust-lang/rust/issues/44404">https://github.com/rust-lang/rust/issues/44404</a></p>



<a name="163520671"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Doc%20tests%20for%20std/near/163520671" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> QuietMisdreavus <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Doc.20tests.20for.20std.html#163520671">(Apr 17 2019 at 00:49)</a>:</h4>
<p>right</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>